# key: ecto-seed
# name: Ecto seed table
# --
alias ${1:App}.${2:Context}

${3:instance}s = [
  %{name: "Chess", description: "The classic strategy game", sku: 5_678_910, unit_price: 10.00},
  %{
    name: "Tic-Tac-Toe",
    description: "The game of Xs and Os",
    sku: 11_121_314,
    unit_price: 3.00
  },
  %{
    name: "Table tennis",
    description: "Bat the ball bck and forth. Don't miss!",
    sku: 15_222_324,
    unit_price: 12.00
  }
]

Enum.each($3s, fn $3->
  $2.create_$3($3)
end)

$0